home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
3_0
/
SPIRO_SO
/
WNE_AVAI.C
< prev
Wrap
C/C++ Source or Header
|
1988-01-03
|
395b
|
19 lines
#include "MacTypes.h"
#include "OSUtil.h"
#define WNETrapNum 0x60
#define UnImplTrapNum 0x9F
Boolean WNE_avail()
{
Boolean WNEIsImplemented;
OSErr err;
SysEnvRec theWorld;
err = SysEnvirons(1,&theWorld);
WNEIsImplemented = (theWorld.machineType >= 0) &&
(NGetTrapAddress( WNETrapNum,ToolTrap) !=
NGetTrapAddress(UnImplTrapNum,ToolTrap));
return(WNEIsImplemented);
}